package 线程和TCP网络编程.TAKS2.失败品.Socket;

import java.net.Socket;

public class socket2 {
    public static void main(String args[]) throws Exception {
        Socket socket = new Socket("127.0.0.1", 8087);
        System.out.println("恭喜你连接成功!");
        new Thread(new SocketThread1(socket)).start();
        new Thread(new SocketThread2(socket)).start();
    }
}
